import axios from '@/utils/requests';

export function page(params) {
    return axios.get('/user/page', { params: params })
}

export function removeByIds(ids) {
    console.log(ids);
    return axios.delete(`/user/${ids}`);
}

export function login(user) {
    return axios.post('/user/login', user);
}

export function logout() {
    return axios.post('/user/logout');
}

export function register(user) {
    return axios.post('/user/register', user);
}
export function sendMsg(addr) {
    return axios.post('/user/sendMessage', { userEmail: addr });
}